#include "object.h"
#include "palette.h"

#ifndef GENESIS_DATATYPES
#define GENESIS_DATATYPES
typedef unsigned char byte;
typedef unsigned short word;
#endif

void LevelLayoutLoad(byte, byte, word);
void LevelLayoutClear();
void LevelDataLoad(byte);
void pcLevels();

struct zoneheader 
{
       byte plc1; 
       long lvlgfx; 
       byte plc2; 
       byte *sixteen; 
       byte *twofivesix;
       byte music;
       byte palette;
};
struct zoneobject
{
       word xpos; 
       word ypos;
};


extern object *objects;
extern object *player;

class zone
{
    public:
	byte *v_16x16;
	byte *v_256x256;
	byte *v_lvllayout;   //(account for all $80 bytes 0-40 fg, 41-80 bg
    word width[2], height[2];	
	//object *zoneobjs=objects; //pointers to objects and player
	//object *sonic=player;
	zoneobject objlocations[127];
	word objstatecount;
	long objstate[94];
	
};

